home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / idecla2 / mmconst.asc < prev    next >
Encoding:
Text File  |  1994-06-21  |  36.0 KB  |  839 lines

  1. ''general constants
  2. Global Const MAXPNAMELEN = 32    'max product name length (including NULL)
  3. Global Const MAXERRORLENGTH = 128    'max error text length (including NULL)
  4.  
  5. ''types for wType field in MMTIME struct 
  6. Global Const TIME_MS = &H0001    'time in milliseconds */
  7. Global Const TIME_SAMPLES = &H0002    'number of wave samples */
  8. Global Const TIME_BYTES = &H0004    'current byte offset
  9. Global Const TIME_SMPTE = &H0008    'SMPTE time
  10. Global Const TIME_MIDI = &H0010    'MIDI time
  11.  
  12. Global Const MM_JOY1MOVE = &H3A0    'joystick
  13. Global Const MM_JOY2MOVE = &H3A1
  14. Global Const MM_JOY1ZMOVE = &H3A2
  15. Global Const MM_JOY2ZMOVE = &H3A3
  16. Global Const MM_JOY1BUTTONDOWN = &H3B5
  17. Global Const MM_JOY2BUTTONDOWN = &H3B6
  18. Global Const MM_JOY1BUTTONUP = &H3B7
  19. Global Const MM_JOY2BUTTONUP = &H3B8
  20.  
  21. Global Const MM_MCINOTIFY = &H3B9    'MCI
  22.  
  23. Global Const MM_WOM_OPEN = &H3BB    'waveform output
  24. Global Const MM_WOM_CLOSE = &H3BC
  25. Global Const MM_WOM_DONE = &H3BD
  26.  
  27. Global Const MM_WIM_OPEN = &H3BE    'waveform input
  28. Global Const MM_WIM_CLOSE = &H3BF
  29. Global Const MM_WIM_DATA = &H3C0
  30.  
  31. Global Const MM_MIM_OPEN = &H3C1    'MIDI input
  32. Global Const MM_MIM_CLOSE = &H3C2
  33. Global Const MM_MIM_DATA = &H3C3
  34. Global Const MM_MIM_LONGDATA = &H3C4
  35. Global Const MM_MIM_ERROR = &H3C5
  36. Global Const MM_MIM_LONGERROR = &H3C6
  37.  
  38. Global Const MM_MOM_OPEN = &H3C7    'MIDI output
  39. Global Const MM_MOM_CLOSE = &H3C8
  40. Global Const MM_MOM_DONE = &H3C9
  41.  
  42. Global Const MMSYSERR_BASE = 0
  43. Global Const WAVERR_BASE = 32
  44. Global Const MIDIERR_BASE = 64
  45. Global Const TIMERR_BASE = 96
  46. Global Const JOYERR_BASE = 160
  47. Global Const MCIERR_BASE = 256
  48.  
  49. Global Const MCI_STRING_OFFSET = 512
  50. Global Const MCI_VD_OFFSET = 1024
  51. Global Const MCI_CD_OFFSET = 1088
  52. Global Const MCI_WAVE_OFFSET = 1152
  53. Global Const MCI_SEQ_OFFSET = 1216
  54.  
  55. Global Const MMSYSERR_NOERROR = 0    'no error
  56. Global Const MMSYSERR_ERROR = (MMSYSERR_BASE + 1)    'unspecified error
  57. Global Const MMSYSERR_BADDEVICEID = (MMSYSERR_BASE + 2)    'device ID out of range
  58. Global Const MMSYSERR_NOTENABLED = (MMSYSERR_BASE + 3)    'driver failed enable
  59. Global Const MMSYSERR_ALLOCATED = (MMSYSERR_BASE + 4)    'device already allocated
  60. Global Const MMSYSERR_INVALHANDLE = (MMSYSERR_BASE + 5)    'device handle is invalid
  61. Global Const MMSYSERR_NODRIVER = (MMSYSERR_BASE + 6)    'no device driver present
  62. Global Const MMSYSERR_NOMEM = (MMSYSERR_BASE + 7)    'memory allocation error
  63. Global Const MMSYSERR_NOTSUPPORTED =(MMSYSERR_BASE + 8)    'function isn't supported
  64. Global Const MMSYSERR_BADERRNUM = (MMSYSERR_BASE + 9)    'error value out of range
  65. Global Const MMSYSERR_INVALFLAG = (MMSYSERR_BASE + 10)    'invalid flag passed
  66. Global Const MMSYSERR_INVALPARAM = (MMSYSERR_BASE + 11)    'invalid parameter passed
  67. Global Const MMSYSERR_LASTERROR = (MMSYSERR_BASE + 11)    'last error in range
  68.  
  69. 'return values from DriverProc() function
  70. Global Const DRV_CANCEL = &H0000
  71. Global Const DRV_OK = &H0001
  72. Global Const DRV_RESTART = &H0002
  73.  
  74. 'Driver messages
  75. Global Const DRV_LOAD = &H0001
  76. Global Const DRV_ENABLE = &H0002
  77. Global Const DRV_OPEN = &H0003
  78. Global Const DRV_CLOSE = &H0004
  79. Global Const DRV_DISABLE = &H0005
  80. Global Const DRV_FREE = &H0006
  81. Global Const DRV_CONFIGURE = &H0007
  82. Global Const DRV_QUERYCONFIGURE = &H0008
  83. Global Const DRV_INSTALL = &H0009
  84. Global Const DRV_REMOVE = &H000A
  85. Global Const DRV_RESERVED = &H0800
  86. Global Const DRV_USER = &H4000
  87.  
  88. Global Const CALLBACK_TYPEMASK = &H00070000&    'callback type mask
  89. Global Const CALLBACK_NULL = &H00000000&    'no callback
  90. Global Const CALLBACK_WINDOW = &H00010000&    'dwCallback is a HWND
  91. Global Const CALLBACK_TASK = &H00020000&    'dwCallback is a HTASK
  92. Global Const CALLBACK_FUNCTION = &H00030000&    'dwCallback is a FARPROC
  93.  
  94. 'driver callback prototypes
  95. 'manufacturer IDs
  96. Global Const MM_MICROSOFT = 1    'Microsoft Corp.
  97.  
  98. 'product IDs
  99. Global Const MM_MIDI_MAPPER = 1    'MIDI Mapper
  100. Global Const MM_WAVE_MAPPER = 2    'Wave Mapper
  101.  
  102. Global Const MM_SNDBLST_MIDIOUT = 3    'Sound Blaster MIDI output port
  103. Global Const MM_SNDBLST_MIDIIN = 4    'Sound Blaster MIDI input port 
  104. Global Const MM_SNDBLST_SYNTH = 5    'Sound Blaster internal synthesizer
  105. Global Const MM_SNDBLST_WAVEOUT = 6    'Sound Blaster waveform output
  106. Global Const MM_SNDBLST_WAVEIN = 7    'Sound Blaster waveform input
  107.  
  108. Global Const MM_ADLIB = 9    'Ad Lib-compatible synthesizer
  109.  
  110. Global Const MM_MPU401_MIDIOUT = 10    'MPU401-compatible MIDI output port
  111. Global Const MM_MPU401_MIDIIN = 11    'MPU401-compatible MIDI input port
  112.  
  113. Global Const MM_PC_JOYSTICK = 12    'Joystick adapter
  114.  
  115. 'flag values for wFlags parameter
  116. Global Const SND_SYNC = &H0000    'play synchronously (default)
  117. Global Const SND_ASYNC = &H0001    'play asynchronously
  118. Global Const SND_NODEFAULT = &H0002    'don't use default sound
  119. Global Const SND_MEMORY = &H0004    'lpszSoundName points to a memory file
  120. Global Const SND_LOOP = &H0008    'loop the sound until next sndPlaySound
  121. Global Const SND_NOSTOP = &H0010    'don't stop any currently playing sound */ 
  122.  
  123. 'waveform audio error return values
  124. Global Const WAVERR_BADFORMAT = (WAVERR_BASE + 0)    'unsupported wave format
  125. Global Const WAVERR_STILLPLAYING = (WAVERR_BASE + 1)    'still something playing
  126. Global Const WAVERR_UNPREPARED = (WAVERR_BASE + 2)    'header not prepared
  127. Global Const WAVERR_SYNC = (WAVERR_BASE + 3)    'device is synchronous
  128. Global Const WAVERR_LASTERROR = (WAVERR_BASE + 3)    'last error in range
  129.  
  130. 'wave callback messages 
  131. Global Const WOM_OPEN = MM_WOM_OPEN
  132. Global Const WOM_CLOSE = MM_WOM_CLOSE
  133. Global Const WOM_DONE = MM_WOM_DONE
  134. Global Const WIM_OPEN = MM_WIM_OPEN
  135. Global Const WIM_CLOSE = MM_WIM_CLOSE
  136. Global Const WIM_DATA = MM_WIM_DATA
  137.  
  138. 'device ID for wave device mapper 
  139. Global Const WAVE_MAPPER = (-1)
  140.  
  141. 'flags for dwFlags parameter in waveOutOpen() and waveInOpen() 
  142. Global Const WAVE_FORMAT_QUERY = &H0001
  143. Global Const WAVE_ALLOWSYNC = &H0002
  144.  
  145. 'flags for dwFlags field of WAVEHDR 
  146. Global Const WHDR_DONE = &H00000001    'done bit 
  147. Global Const WHDR_PREPARED = &H00000002    'set if this header has been prepared 
  148. Global Const WHDR_BEGINLOOP = &H00000004    'loop start block 
  149. Global Const WHDR_ENDLOOP = &H00000008    'loop end block 
  150. Global Const WHDR_INQUEUE = &H00000010    'reserved for driver 
  151.  
  152. 'flags for dwSupport field of WAVEOUTCAPS 
  153. Global Const WAVECAPS_PITCH = &H0001    'supports pitch control 
  154. Global Const WAVECAPS_PLAYBACKRATE = &H0002    'supports playback rate control 
  155. Global Const WAVECAPS_VOLUME = &H0004    'supports volume control 
  156. Global Const WAVECAPS_LRVOLUME = &H0008    'separate left-right volume control 
  157. Global Const WAVECAPS_SYNC = &H0010
  158.  
  159. 'defines for dwFormat field of WAVEINCAPS and WAVEOUTCAPS 
  160. Global Const WAVE_INVALIDFORMAT = &H00000000&    'invalid format 
  161. Global Const WAVE_FORMAT_1M08 = &H00000001&    '11.025 kHz, Mono,   8-bit  
  162. Global Const WAVE_FORMAT_1S08 = &H00000002&    '11.025 kHz, Stereo, 8-bit  
  163. Global Const WAVE_FORMAT_1M16 = &H00000004&    '11.025 kHz, Mono,   16-bit 
  164. Global Const WAVE_FORMAT_1S16 = &H00000008&    '11.025 kHz, Stereo, 16-bit 
  165. Global Const WAVE_FORMAT_2M08 = &H00000010&    '22.05  kHz, Mono,   8-bit  
  166. Global Const WAVE_FORMAT_2S08 = &H00000020&    '22.05  kHz, Stereo, 8-bit  
  167. Global Const WAVE_FORMAT_2M16 = &H00000040&    '22.05  kHz, Mono,   16-bit 
  168. Global Const WAVE_FORMAT_2S16 = &H00000080&    '22.05  kHz, Stereo, 16-bit 
  169. Global Const WAVE_FORMAT_4M08 = &H00000100&    '44.1   kHz, Mono,   8-bit  
  170. Global Const WAVE_FORMAT_4S08 = &H00000200&    '44.1   kHz, Stereo, 8-bit  
  171. Global Const WAVE_FORMAT_4M16 = &H00000400&    '44.1   kHz, Mono,   16-bit 
  172. Global Const WAVE_FORMAT_4S16 = &H00000800&    '44.1   kHz, Stereo, 16-bit 
  173.  
  174. 'flags for wFormatTag field of WAVEFORMAT 
  175. Global Const WAVE_FORMAT_PCM = 1
  176.  
  177. 'MIDI error return values 
  178. Global Const MIDIERR_UNPREPARED = (MIDIERR_BASE + 0)    'header not prepared 
  179. Global Const MIDIERR_STILLPLAYING = (MIDIERR_BASE + 1)    'still something playing 
  180. Global Const MIDIERR_NOMAP = (MIDIERR_BASE + 2)    'no current map 
  181. Global Const MIDIERR_NOTREADY = (MIDIERR_BASE + 3)    'hardware is still busy 
  182. Global Const MIDIERR_NODEVICE = (MIDIERR_BASE + 4)    'port no longer connected 
  183. Global Const MIDIERR_INVALIDSETUP = (MIDIERR_BASE + 5)    'invalid setup 
  184. Global Const MIDIERR_LASTERROR = (MIDIERR_BASE + 5)    'last error in range 
  185.  
  186. 'MIDI audio data types 
  187. Global Const MIDIPATCHSIZE = 128
  188.  
  189. 'MIDI callback messages 
  190. Global Const MIM_OPEN = MM_MIM_OPEN
  191. Global Const MIM_CLOSE = MM_MIM_CLOSE
  192. Global Const MIM_DATA = MM_MIM_DATA
  193. Global Const MIM_LONGDATA = MM_MIM_LONGDATA
  194. Global Const MIM_ERROR = MM_MIM_ERROR
  195. Global Const MIM_LONGERROR = MM_MIM_LONGERROR
  196. Global Const MOM_OPEN = MM_MOM_OPEN
  197. Global Const MOM_CLOSE = MM_MOM_CLOSE
  198. Global Const MOM_DONE = MM_MOM_DONE
  199.  
  200. 'device ID for MIDI mapper 
  201. Global Const MIDIMAPPER = (-1)
  202. Global Const MIDI_MAPPER = (-1)
  203.  
  204. 'flags for wFlags parm of midiOutCachePatches(), midiOutCacheDrumPatches()
  205. Global Const MIDI_CACHE_ALL = 1
  206. Global Const MIDI_CACHE_BESTFIT = 2
  207. Global Const MIDI_CACHE_QUERY = 3
  208. Global Const MIDI_UNCACHE = 4
  209.  
  210. 'flags for wTechnology field of MIDIOUTCAPS structure 
  211. Global Const MOD_MIDIPORT = 1    'output port 
  212. Global Const MOD_SYNTH = 2    'generic internal synth 
  213. Global Const MOD_SQSYNTH = 3    'square wave internal synth 
  214. Global Const MOD_FMSYNTH = 4    'FM internal synth 
  215. Global Const MOD_MAPPER = 5    'MIDI mapper 
  216.  
  217. 'flags for dwSupport field of MIDIOUTCAPS structure 
  218. Global Const MIDICAPS_VOLUME = &H0001    'supports volume control 
  219. Global Const MIDICAPS_LRVOLUME = &H0002    'separate left-right volume control 
  220. Global Const MIDICAPS_CACHE = &H0004
  221.  
  222. 'flags for dwFlags field of MIDIHDR structure 
  223. Global Const MHDR_DONE = &H00000001    'done bit 
  224. Global Const MHDR_PREPARED = &H00000002    'set if header prepared 
  225. Global Const MHDR_INQUEUE = &H00000004    'reserved for driver 
  226.  
  227. 'device ID for aux device mapper 
  228. Global Const AUX_MAPPER = (-1)
  229.  
  230. 'flags for wTechnology field in AUXCAPS structure 
  231. Global Const AUXCAPS_CDAUDIO = 1    'audio from internal CD-ROM drive 
  232. Global Const AUXCAPS_AUXIN = 2    'audio from auxiliary input jacks 
  233.  
  234. 'flags for dwSupport field in AUXCAPS structure 
  235. Global Const AUXCAPS_VOLUME = &H0001    'supports volume control 
  236. Global Const AUXCAPS_LRVOLUME = &H0002    'separate left-right volume control 
  237.  
  238. 'timer error return values 
  239. Global Const TIMERR_NOERROR = (0)    'no error 
  240. Global Const TIMERR_NOCANDO = (TIMERR_BASE+1)    'request not completed 
  241. Global Const TIMERR_STRUCT = (TIMERR_BASE+33)    'time struct size 
  242.  
  243. 'flags for wFlags parameter of timeSetEvent() function 
  244. Global Const TIME_ONESHOT = 0    'program timer for single event 
  245. Global Const TIME_PERIODIC = 1    'program for continuous periodic event 
  246.  
  247. 'joystick error return values 
  248. Global Const JOYERR_NOERROR = (0)    'no error 
  249. Global Const JOYERR_PARMS = (JOYERR_BASE+5)    'bad parameters 
  250. Global Const JOYERR_NOCANDO = (JOYERR_BASE+6)    'request not completed 
  251. Global Const JOYERR_UNPLUGGED = (JOYERR_BASE+7)    'joystick is unplugged 
  252.  
  253. 'constants used with JOYINFO structure and MM_JOY* messages 
  254. Global Const JOY_BUTTON1 = &H0001
  255. Global Const JOY_BUTTON2 = &H0002
  256. Global Const JOY_BUTTON3 = &H0004
  257. Global Const JOY_BUTTON4 = &H0008
  258. Global Const JOY_BUTTON1CHG = &H0100
  259. Global Const JOY_BUTTON2CHG = &H0200
  260. Global Const JOY_BUTTON3CHG = &H0400
  261. Global Const JOY_BUTTON4CHG = &H0800
  262.  
  263. 'joystick ID constants 
  264. Global Const JOYSTICKID1 = 0
  265. Global Const JOYSTICKID2 = 1
  266.  
  267. 'MMIO error return values 
  268. Global Const MMIOERR_BASE = 256
  269. Global Const MMIOERR_FILENOTFOUND = (MMIOERR_BASE + 1)    'file not found 
  270. Global Const MMIOERR_OUTOFMEMORY = (MMIOERR_BASE + 2)    'out of memory 
  271. Global Const MMIOERR_CANNOTOPEN = (MMIOERR_BASE + 3)    'cannot open 
  272. Global Const MMIOERR_CANNOTCLOSE = (MMIOERR_BASE + 4)    'cannot close 
  273. Global Const MMIOERR_CANNOTREAD = (MMIOERR_BASE + 5)    'cannot read 
  274. Global Const MMIOERR_CANNOTWRITE = (MMIOERR_BASE + 6)    'cannot write 
  275. Global Const MMIOERR_CANNOTSEEK = (MMIOERR_BASE + 7)    'cannot seek 
  276. Global Const MMIOERR_CANNOTEXPAND = (MMIOERR_BASE + 8)    'cannot expand file 
  277. Global Const MMIOERR_CHUNKNOTFOUND = (MMIOERR_BASE + 9)    'chunk not found 
  278. Global Const MMIOERR_UNBUFFERED = (MMIOERR_BASE + 10)    'file is unbuffered 
  279.  
  280. 'MMIO constants 
  281. Global Const CFSEPCHAR = &H2B    'compound file name separator char. 
  282.  
  283. 'bit field masks 
  284. Global Const MMIO_RWMODE = &H00000003    'open file for reading/writing/both 
  285. Global Const MMIO_SHAREMODE = &H00000070    'file sharing mode number 
  286.  
  287. 'constants for dwFlags field of MMIOINFO 
  288. Global Const MMIO_CREATE = &H00001000    'create new file (or truncate file) 
  289. Global Const MMIO_PARSE = &H00000100    'parse new file returning path 
  290. Global Const MMIO_DELETE = &H00000200    'create new file (or truncate file) 
  291. Global Const MMIO_EXIST = &H00004000    'checks for existence of file 
  292. Global Const MMIO_ALLOCBUF = &H00010000    'mmioOpen() should allocate a buffer 
  293. Global Const MMIO_GETTEMP = &H00020000    'mmioOpen() should retrieve temp name 
  294.  
  295. Global Const MMIO_DIRTY = &H10000000    'I/O buffer is dirty 
  296.  
  297. 'read/write mode numbers (bit field MMIO_RWMODE) 
  298. Global Const MMIO_READ = &H00000000    'open file for reading only 
  299. Global Const MMIO_WRITE = &H00000001    'open file for writing only 
  300. Global Const MMIO_READWRITE = &H00000002    'open file for reading and writing 
  301.  
  302. 'share mode numbers (bit field MMIO_SHAREMODE) 
  303. Global Const MMIO_COMPAT = &H00000000    'compatibility mode 
  304. Global Const MMIO_EXCLUSIVE = &H00000010    'exclusive-access mode 
  305. Global Const MMIO_DENYWRITE = &H00000020    'deny writing to other processes 
  306. Global Const MMIO_DENYREAD = &H00000030    'deny reading to other processes 
  307. Global Const MMIO_DENYNONE = &H00000040    'deny nothing to other processes 
  308.  
  309. 'various MMIO flags 
  310. Global Const MMIO_FHOPEN = &H0010    'mmioClose: keep file handle open 
  311. Global Const MMIO_EMPTYBUF = &H0010    'mmioFlush: empty the I/O buffer 
  312. Global Const MMIO_TOUPPER = &H0010    'mmioStringToFOURCC: to u-case 
  313. Global Const MMIO_INSTALLPROC = &H00010000    'mmioInstallIOProc: install MMIOProc 
  314. Global Const MMIO_GLOBALPROC = &H10000000    'mmioInstallIOProc: install globally 
  315. Global Const MMIO_REMOVEPROC = &H00020000    'mmioInstallIOProc: remove MMIOProc 
  316. Global Const MMIO_FINDPROC = &H00040000    'mmioInstallIOProc: find an MMIOProc 
  317. Global Const MMIO_FINDCHUNK = &H0010    'mmioDescend: find a chunk by ID 
  318. Global Const MMIO_FINDRIFF = &H0020    'mmioDescend: find a LIST chunk 
  319. Global Const MMIO_FINDLIST = &H0040    'mmioDescend: find a RIFF chunk 
  320. Global Const MMIO_CREATERIFF = &H0020    'mmioCreateChunk: make a LIST chunk 
  321. Global Const MMIO_CREATELIST = &H0040    'mmioCreateChunk: make a RIFF chunk 
  322.  
  323. 'message numbers for MMIOPROC I/O procedure functions 
  324. Global Const MMIOM_READ = MMIO_READ    'read 
  325. Global Const MMIOM_WRITE = MMIO_WRITE    'write 
  326. Global Const MMIOM_SEEK = 2    'seek to a new position in file 
  327. Global Const MMIOM_OPEN = 3    'open file 
  328. Global Const MMIOM_CLOSE = 4    'close file 
  329. Global Const MMIOM_WRITEFLUSH = 5    'write and flush 
  330. Global Const MMIOM_RENAME = 6    'rename specified file 
  331. Global Const MMIOM_USER = &H8000    'beginning of user-defined messages 
  332.  
  333. 'standard four character codes 
  334. Global Const FOURCC_RIFF = &H46464952&    'mmioFOURCC('R','I','F','F')
  335. Global Const FOURCC_LIST = &H5453494C&    'mmioFOURCC('L','I','S','T')
  336.  
  337. 'four character codes used to identify standard built-in I/O procedures 
  338. Global Const FOURCC_DOS = &H20534F44&    'mmioFOURCC('D','O','S','')
  339. Global Const FOURCC_MEM = &H204D454D&    'mmioFOURCC('M','E','M','')
  340.  
  341. 'flags for mmioSeek() 
  342. Global Const SEEK_SET = 0    'seek to an absolute position 
  343. Global Const SEEK_CUR = 1    'seek relative to current position 
  344. Global Const SEEK_END = 2    'seek relative to end of file 
  345.  
  346. 'other constants 
  347. Global Const MMIO_DEFAULTBUFFER = 8192    'default buffer size 
  348.  
  349. 'MCI error return values 
  350. Global Const MCIERR_INVALID_DEVICE_ID = (MCIERR_BASE + 1)
  351. Global Const MCIERR_UNRECOGNIZED_KEYWORD = (MCIERR_BASE + 3)
  352. Global Const MCIERR_UNRECOGNIZED_COMMAND = (MCIERR_BASE + 5)
  353. Global Const MCIERR_HARDWARE = (MCIERR_BASE + 6)
  354. Global Const MCIERR_INVALID_DEVICE_NAME = (MCIERR_BASE + 7)
  355. Global Const MCIERR_OUT_OF_MEMORY = (MCIERR_BASE + 8)
  356. Global Const MCIERR_DEVICE_OPEN = (MCIERR_BASE + 9)
  357. Global Const MCIERR_CANNOT_LOAD_DRIVER = (MCIERR_BASE + 10)
  358. Global Const MCIERR_MISSING_COMMAND_STRING = (MCIERR_BASE + 11)
  359. Global Const MCIERR_PARAM_OVERFLOW = (MCIERR_BASE + 12)
  360. Global Const MCIERR_MISSING_STRING_ARGUMENT = (MCIERR_BASE + 13)
  361. Global Const MCIERR_BAD_INTEGER = (MCIERR_BASE + 14)
  362. Global Const MCIERR_PARSER_INTERNAL = (MCIERR_BASE + 15)
  363. Global Const MCIERR_DRIVER_INTERNAL = (MCIERR_BASE + 16)
  364. Global Const MCIERR_MISSING_PARAMETER = (MCIERR_BASE + 17)
  365. Global Const MCIERR_UNSUPPORTED_FUNCTION = (MCIERR_BASE + 18)
  366. Global Const MCIERR_FILE_NOT_FOUND = (MCIERR_BASE + 19)
  367. Global Const MCIERR_DEVICE_NOT_READY = (MCIERR_BASE + 20)
  368. Global Const MCIERR_INTERNAL = (MCIERR_BASE + 21)
  369. Global Const MCIERR_DRIVER = (MCIERR_BASE + 22)
  370. Global Const MCIERR_CANNOT_USE_ALL = (MCIERR_BASE + 23)
  371. Global Const MCIERR_MULTIPLE = (MCIERR_BASE + 24)
  372. Global Const MCIERR_EXTENSION_NOT_FOUND = (MCIERR_BASE + 25)
  373. Global Const MCIERR_OUTOFRANGE = (MCIERR_BASE + 26)
  374. Global Const MCIERR_FLAGS_NOT_COMPATIBLE = (MCIERR_BASE + 28)
  375. Global Const MCIERR_FILE_NOT_SAVED = (MCIERR_BASE + 30)
  376. Global Const MCIERR_DEVICE_TYPE_REQUIRED = (MCIERR_BASE + 31)
  377. Global Const MCIERR_DEVICE_LOCKED = (MCIERR_BASE + 32)
  378. Global Const MCIERR_DUPLICATE_ALIAS = (MCIERR_BASE + 33)
  379. Global Const MCIERR_BAD_CONSTANT = (MCIERR_BASE + 34)
  380. Global Const MCIERR_MUST_USE_SHAREABLE = (MCIERR_BASE + 35)
  381. Global Const MCIERR_MISSING_DEVICE_NAME = (MCIERR_BASE + 36)
  382. Global Const MCIERR_BAD_TIME_FORMAT = (MCIERR_BASE + 37)
  383. Global Const MCIERR_NO_CLOSING_QUOTE = (MCIERR_BASE + 38)
  384. Global Const MCIERR_DUPLICATE_FLAGS = (MCIERR_BASE + 39)
  385. Global Const MCIERR_INVALID_FILE = (MCIERR_BASE + 40)
  386. Global Const MCIERR_NULL_PARAMETER_BLOCK = (MCIERR_BASE + 41)
  387. Global Const MCIERR_UNNAMED_RESOURCE = (MCIERR_BASE + 42)
  388. Global Const MCIERR_NEW_REQUIRES_ALIAS = (MCIERR_BASE + 43)
  389. Global Const MCIERR_NOTIFY_ON_AUTO_OPEN = (MCIERR_BASE + 44)
  390. Global Const MCIERR_NO_ELEMENT_ALLOWED = (MCIERR_BASE + 45)
  391. Global Const MCIERR_NONAPPLICABLE_FUNCTION = (MCIERR_BASE + 46)
  392. Global Const MCIERR_ILLEGAL_FOR_AUTO_OPEN = (MCIERR_BASE + 47)
  393. Global Const MCIERR_FILENAME_REQUIRED = (MCIERR_BASE + 48)
  394. Global Const MCIERR_EXTRA_CHARACTERS = (MCIERR_BASE + 49)
  395. Global Const MCIERR_DEVICE_NOT_INSTALLED = (MCIERR_BASE + 50)
  396. Global Const MCIERR_GET_CD = (MCIERR_BASE + 51)
  397. Global Const MCIERR_SET_CD = (MCIERR_BASE + 52)
  398. Global Const MCIERR_SET_DRIVE = (MCIERR_BASE + 53)
  399. Global Const MCIERR_DEVICE_LENGTH = (MCIERR_BASE + 54)
  400. Global Const MCIERR_DEVICE_ORD_LENGTH = (MCIERR_BASE + 55)
  401. Global Const MCIERR_NO_INTEGER = (MCIERR_BASE + 56)
  402.  
  403. Global Const MCIERR_WAVE_OUTPUTSINUSE = (MCIERR_BASE + 64)
  404. Global Const MCIERR_WAVE_SETOUTPUTINUSE = (MCIERR_BASE + 65)
  405. Global Const MCIERR_WAVE_INPUTSINUSE = (MCIERR_BASE + 66)
  406. Global Const MCIERR_WAVE_SETINPUTINUSE = (MCIERR_BASE + 67)
  407. Global Const MCIERR_WAVE_OUTPUTUNSPECIFIED = (MCIERR_BASE + 68)
  408. Global Const MCIERR_WAVE_INPUTUNSPECIFIED = (MCIERR_BASE + 69)
  409. Global Const MCIERR_WAVE_OUTPUTSUNSUITABLE = (MCIERR_BASE + 70)
  410. Global Const MCIERR_WAVE_SETOUTPUTUNSUITABLE = (MCIERR_BASE + 71)
  411. Global Const MCIERR_WAVE_INPUTSUNSUITABLE = (MCIERR_BASE + 72)
  412. Global Const MCIERR_WAVE_SETINPUTUNSUITABLE = (MCIERR_BASE + 73)
  413.  
  414. Global Const MCIERR_SEQ_DIV_INCOMPATIBLE = (MCIERR_BASE + 80)
  415. Global Const MCIERR_SEQ_PORT_INUSE = (MCIERR_BASE + 81)
  416. Global Const MCIERR_SEQ_PORT_NONEXISTENT = (MCIERR_BASE + 82)
  417. Global Const MCIERR_SEQ_PORT_MAPNODEVICE = (MCIERR_BASE + 83)
  418. Global Const MCIERR_SEQ_PORT_MISCERROR = (MCIERR_BASE + 84)
  419. Global Const MCIERR_SEQ_TIMER = (MCIERR_BASE + 85)
  420. Global Const MCIERR_SEQ_PORTUNSPECIFIED = (MCIERR_BASE + 86)
  421. Global Const MCIERR_SEQ_NOMIDIPRESENT = (MCIERR_BASE + 87)
  422.  
  423. Global Const MCIERR_NO_WINDOW = (MCIERR_BASE + 90)
  424. Global Const MCIERR_CREATEWINDOW = (MCIERR_BASE + 91)
  425. Global Const MCIERR_FILE_READ = (MCIERR_BASE + 92)
  426. Global Const MCIERR_FILE_WRITE = (MCIERR_BASE + 93)
  427.  
  428. 'all custom device driver errors must be >= than this value 
  429. Global Const MCIERR_CUSTOM_DRIVER_BASE = (MCIERR_BASE + 256)
  430.  
  431. 'MCI command message identifiers 
  432. Global Const MCI_OPEN = &H0803
  433. Global Const MCI_CLOSE = &H0804
  434. Global Const MCI_ESCAPE = &H0805
  435. Global Const MCI_PLAY = &H0806
  436. Global Const MCI_SEEK = &H0807
  437. Global Const MCI_STOP = &H0808
  438. Global Const MCI_PAUSE = &H0809
  439. Global Const MCI_INFO = &H080A
  440. Global Const MCI_GETDEVCAPS = &H080B
  441. Global Const MCI_SPIN = &H080C
  442. Global Const MCI_SET = &H080D
  443. Global Const MCI_STEP = &H080E
  444. Global Const MCI_RECORD = &H080F
  445. Global Const MCI_SYSINFO = &H0810
  446. Global Const MCI_BREAK = &H0811
  447. Global Const MCI_SOUND = &H0812
  448. Global Const MCI_SAVE = &H0813
  449. Global Const MCI_STATUS = &H0814
  450. Global Const MCI_CUE = &H0830
  451. Global Const MCI_REALIZE = &H0840
  452. Global Const MCI_WINDOW = &H0841
  453. Global Const MCI_PUT = &H0842
  454. Global Const MCI_WHERE = &H0843
  455. Global Const MCI_FREEZE = &H0844
  456. Global Const MCI_UNFREEZE = &H0845
  457. Global Const MCI_LOAD = &H0850
  458. Global Const MCI_CUT = &H0851
  459. Global Const MCI_COPY = &H0852
  460. Global Const MCI_PASTE = &H0853
  461. Global Const MCI_UPDATE = &H0854
  462. Global Const MCI_RESUME = &H0855
  463. Global Const MCI_DELETE = &H0856
  464.  
  465. 'all custom MCI command messages must be >= than this value 
  466. Global Const MCI_USER_MESSAGES = (&H400 + DRV_MCI_FIRST)
  467.  
  468. 'device ID for "all devices" 
  469. Global Const MCI_ALL_DEVICE_ID = &HFFFF
  470.  
  471. 'constants for predefined MCI device types 
  472. Global Const MCI_DEVTYPE_VCR = (MCI_STRING_OFFSET + 1)
  473. Global Const MCI_DEVTYPE_VIDEODISC = (MCI_STRING_OFFSET + 2)
  474. Global Const MCI_DEVTYPE_OVERLAY = (MCI_STRING_OFFSET + 3)
  475. Global Const MCI_DEVTYPE_CD_AUDIO = (MCI_STRING_OFFSET + 4)
  476. Global Const MCI_DEVTYPE_DAT = (MCI_STRING_OFFSET + 5)
  477. Global Const MCI_DEVTYPE_SCANNER = (MCI_STRING_OFFSET + 6)
  478. Global Const MCI_DEVTYPE_ANIMATION = (MCI_STRING_OFFSET + 7)
  479. Global Const MCI_DEVTYPE_DIGITAL_VIDEO = (MCI_STRING_OFFSET + 8)
  480. Global Const MCI_DEVTYPE_OTHER = (MCI_STRING_OFFSET + 9)
  481. Global Const MCI_DEVTYPE_WAVEFORM_AUDIO = (MCI_STRING_OFFSET + 10)
  482. Global Const MCI_DEVTYPE_SEQUENCER = (MCI_STRING_OFFSET + 11)
  483.  
  484. Global Const MCI_DEVTYPE_FIRST = MCI_DEVTYPE_VCR
  485. Global Const MCI_DEVTYPE_LAST = MCI_DEVTYPE_SEQUENCER
  486.  
  487. 'return values for    'status mode'command 
  488. Global Const MCI_MODE_NOT_READY = (MCI_STRING_OFFSET + 12)
  489. Global Const MCI_MODE_STOP = (MCI_STRING_OFFSET + 13)
  490. Global Const MCI_MODE_PLAY = (MCI_STRING_OFFSET + 14)
  491. Global Const MCI_MODE_RECORD = (MCI_STRING_OFFSET + 15)
  492. Global Const MCI_MODE_SEEK = (MCI_STRING_OFFSET + 16)
  493. Global Const MCI_MODE_PAUSE = (MCI_STRING_OFFSET + 17)
  494. Global Const MCI_MODE_OPEN = (MCI_STRING_OFFSET + 18)
  495.  
  496. 'constants used in    'set time format'and    'status time format'commands 
  497. Global Const MCI_FORMAT_MILLISECONDS = 0
  498. Global Const MCI_FORMAT_HMS = 1
  499. Global Const MCI_FORMAT_MSF = 2
  500. Global Const MCI_FORMAT_FRAMES = 3
  501. Global Const MCI_FORMAT_SMPTE_24 = 4
  502. Global Const MCI_FORMAT_SMPTE_25 = 5
  503. Global Const MCI_FORMAT_SMPTE_30 = 6
  504. Global Const MCI_FORMAT_SMPTE_30DROP = 7
  505. Global Const MCI_FORMAT_BYTES = 8
  506. Global Const MCI_FORMAT_SAMPLES = 9
  507. Global Const MCI_FORMAT_TMSF = 10
  508.  
  509. 'MCI time format conversion macros 
  510.  
  511. 'flags for wParam of MM_MCINOTIFY message 
  512. Global Const MCI_NOTIFY_SUCCESSFUL = &H0001
  513. Global Const MCI_NOTIFY_SUPERSEDED = &H0002
  514. Global Const MCI_NOTIFY_ABORTED = &H0004
  515. Global Const MCI_NOTIFY_FAILURE = &H0008
  516.  
  517. 'common flags for dwFlags parameter of MCI command messages 
  518. Global Const MCI_NOTIFY = &H00000001&
  519. Global Const MCI_WAIT = &H00000002&
  520. Global Const MCI_FROM = &H00000004&
  521. Global Const MCI_TO = &H00000008&
  522. Global Const MCI_TRACK = &H00000010&
  523.  
  524. 'flags for dwFlags parameter of MCI_OPEN command message 
  525. Global Const MCI_OPEN_SHAREABLE = &H00000100&
  526. Global Const MCI_OPEN_ELEMENT = &H00000200&
  527. Global Const MCI_OPEN_ALIAS = &H00000400&
  528. Global Const MCI_OPEN_ELEMENT_ID = &H00000800&
  529. Global Const MCI_OPEN_TYPE_ID = &H00001000&
  530. Global Const MCI_OPEN_TYPE = &H00002000&
  531.  
  532. 'flags for dwFlags parameter of MCI_SEEK command message 
  533. Global Const MCI_SEEK_TO_START = &H00000100&
  534. Global Const MCI_SEEK_TO_END = &H00000200&
  535.  
  536. 'flags for dwFlags parameter of MCI_STATUS command message 
  537. Global Const MCI_STATUS_ITEM = &H00000100&
  538. Global Const MCI_STATUS_START = &H00000200&
  539.  
  540. 'flags for dwItem field of the MCI_STATUS_PARMS parameter block 
  541. Global Const MCI_STATUS_LENGTH = &H00000001&
  542. Global Const MCI_STATUS_POSITION = &H00000002&
  543. Global Const MCI_STATUS_NUMBER_OF_TRACKS = &H00000003&
  544. Global Const MCI_STATUS_MODE = &H00000004&
  545. Global Const MCI_STATUS_MEDIA_PRESENT = &H00000005&
  546. Global Const MCI_STATUS_TIME_FORMAT = &H00000006&
  547. Global Const MCI_STATUS_READY = &H00000007&
  548. Global Const MCI_STATUS_CURRENT_TRACK = &H00000008&
  549.  
  550. 'flags for dwFlags parameter of MCI_INFO command message 
  551. Global Const MCI_INFO_PRODUCT = &H00000100&
  552. Global Const MCI_INFO_FILE = &H00000200&
  553.  
  554. 'flags for dwFlags parameter of MCI_GETDEVCAPS command message 
  555. Global Const MCI_GETDEVCAPS_ITEM = &H00000100&
  556.  
  557. 'flags for dwItem field of the MCI_GETDEVCAPS_PARMS parameter block 
  558. Global Const MCI_GETDEVCAPS_CAN_RECORD = &H00000001&
  559. Global Const MCI_GETDEVCAPS_HAS_AUDIO = &H00000002&
  560. Global Const MCI_GETDEVCAPS_HAS_VIDEO = &H00000003&
  561. Global Const MCI_GETDEVCAPS_DEVICE_TYPE = &H00000004&
  562. Global Const MCI_GETDEVCAPS_USES_FILES = &H00000005&
  563. Global Const MCI_GETDEVCAPS_COMPOUND_DEVICE = &H00000006&
  564. Global Const MCI_GETDEVCAPS_CAN_EJECT = &H00000007&
  565. Global Const MCI_GETDEVCAPS_CAN_PLAY = &H00000008&
  566. Global Const MCI_GETDEVCAPS_CAN_SAVE = &H00000009&
  567.  
  568. 'flags for dwFlags parameter of MCI_SYSINFO command message 
  569. Global Const MCI_SYSINFO_QUANTITY = &H00000100&
  570. Global Const MCI_SYSINFO_OPEN = &H00000200&
  571. Global Const MCI_SYSINFO_NAME = &H00000400&
  572. Global Const MCI_SYSINFO_INSTALLNAME = &H00000800&
  573.  
  574. 'flags for dwFlags parameter of MCI_SET command message 
  575. Global Const MCI_SET_DOOR_OPEN = &H00000100&
  576. Global Const MCI_SET_DOOR_CLOSED = &H00000200&
  577. Global Const MCI_SET_TIME_FORMAT = &H00000400&
  578. Global Const MCI_SET_AUDIO = &H00000800&
  579. Global Const MCI_SET_VIDEO = &H00001000&
  580. Global Const MCI_SET_ON = &H00002000&
  581. Global Const MCI_SET_OFF = &H00004000&
  582.  
  583. 'flags for dwAudio field of MCI_SET_PARMS or MCI_SEQ_SET_PARMS 
  584. Global Const MCI_SET_AUDIO_ALL = &H00000000&
  585. Global Const MCI_SET_AUDIO_LEFT = &H00000001&
  586. Global Const MCI_SET_AUDIO_RIGHT = &H00000002&
  587.  
  588. 'flags for dwFlags parameter of MCI_BREAK command message 
  589. Global Const MCI_BREAK_KEY = &H00000100&
  590. Global Const MCI_BREAK_HWND = &H00000200&
  591. Global Const MCI_BREAK_OFF = &H00000400&
  592.  
  593. 'flags for dwFlags parameter of MCI_RECORD command message 
  594. Global Const MCI_RECORD_INSERT = &H00000100&
  595. Global Const MCI_RECORD_OVERWRITE = &H00000200&
  596.  
  597. 'flags for dwFlags parameter of MCI_SOUND command message 
  598. Global Const MCI_SOUND_NAME = &H00000100&
  599.  
  600. 'flags for dwFlags parameter of MCI_SAVE command message 
  601. Global Const MCI_SAVE_FILE = &H00000100&
  602.  
  603. 'flags for dwFlags parameter of MCI_LOAD command message 
  604. Global Const MCI_LOAD_FILE = &H00000100&
  605.  
  606. 'MCI extensions for videodisc devices 
  607.  
  608. 'flag for dwReturn field of MCI_STATUS_PARMS 
  609. 'MCI_STATUS command, (dwItem = MCI_STATUS_MODE) 
  610. Global Const MCI_VD_MODE_PARK = (MCI_VD_OFFSET + 1)
  611.  
  612. 'flag for dwReturn field of MCI_STATUS_PARMS 
  613. 'MCI_STATUS command, (dwItem = MCI_VD_STATUS_MEDIA_TYPE) 
  614. Global Const MCI_VD_MEDIA_CLV = (MCI_VD_OFFSET + 2)
  615. Global Const MCI_VD_MEDIA_CAV = (MCI_VD_OFFSET + 3)
  616. Global Const MCI_VD_MEDIA_OTHER = (MCI_VD_OFFSET + 4)
  617.  
  618. Global Const MCI_VD_FORMAT_TRACK = &H4001
  619.  
  620. 'flags for dwFlags parameter of MCI_PLAY command message 
  621. Global Const MCI_VD_PLAY_REVERSE = &H00010000&
  622. Global Const MCI_VD_PLAY_FAST = &H00020000&
  623. Global Const MCI_VD_PLAY_SPEED = &H00040000&
  624. Global Const MCI_VD_PLAY_SCAN = &H00080000&
  625. Global Const MCI_VD_PLAY_SLOW = &H00100000&
  626.  
  627. 'flag for dwFlags parameter of MCI_SEEK command message 
  628. Global Const MCI_VD_SEEK_REVERSE = &H00010000&
  629.  
  630. 'flags for dwItem field of MCI_STATUS_PARMS parameter block 
  631. Global Const MCI_VD_STATUS_SPEED = &H00004002&
  632. Global Const MCI_VD_STATUS_FORWARD = &H00004003&
  633. Global Const MCI_VD_STATUS_MEDIA_TYPE = &H00004004&
  634. Global Const MCI_VD_STATUS_SIDE = &H00004005&
  635. Global Const MCI_VD_STATUS_DISC_SIZE = &H00004006&
  636.  
  637. 'flags for dwFlags parameter of MCI_GETDEVCAPS command message 
  638. Global Const MCI_VD_GETDEVCAPS_CLV = &H00010000&
  639. Global Const MCI_VD_GETDEVCAPS_CAV = &H00020000&
  640.  
  641. Global Const MCI_VD_SPIN_UP = &H00010000&
  642. Global Const MCI_VD_SPIN_DOWN = &H00020000&
  643.  
  644. 'flags for dwItem field of MCI_GETDEVCAPS_PARMS parameter block 
  645. Global Const MCI_VD_GETDEVCAPS_CAN_REVERSE = &H00004002&
  646. Global Const MCI_VD_GETDEVCAPS_FAST_RATE = &H00004003&
  647. Global Const MCI_VD_GETDEVCAPS_SLOW_RATE = &H00004004&
  648. Global Const MCI_VD_GETDEVCAPS_NORMAL_RATE = &H00004005&
  649.  
  650. 'flags for the dwFlags parameter of MCI_STEP command message 
  651. Global Const MCI_VD_STEP_FRAMES = &H00010000&
  652. Global Const MCI_VD_STEP_REVERSE = &H00020000&
  653.  
  654. 'flag for the MCI_ESCAPE command message 
  655. Global Const MCI_VD_ESCAPE_STRING = &H00000100&
  656.  
  657. 'MCI extensions for waveform audio devices 
  658.  
  659. 'flags for the dwFlags parameter of MCI_OPEN command message 
  660. Global Const MCI_WAVE_OPEN_BUFFER = &H00010000&
  661.  
  662. 'flags for the dwFlags parameter of MCI_SET command message 
  663. Global Const MCI_WAVE_SET_FORMATTAG = &H00010000&
  664. Global Const MCI_WAVE_SET_CHANNELS = &H00020000&
  665. Global Const MCI_WAVE_SET_SAMPLESPERSEC = &H00040000&
  666. Global Const MCI_WAVE_SET_AVGBYTESPERSEC = &H00080000&
  667. Global Const MCI_WAVE_SET_BLOCKALIGN = &H00100000&
  668. Global Const MCI_WAVE_SET_BITSPERSAMPLE = &H00200000&
  669.  
  670. 'flags for the dwFlags parameter of MCI_STATUS, MCI_SET command messages 
  671. Global Const MCI_WAVE_INPUT = &H00400000&
  672. Global Const MCI_WAVE_OUTPUT = &H00800000&
  673.  
  674. 'flags for the dwItem field of MCI_STATUS_PARMS parameter block 
  675. Global Const MCI_WAVE_STATUS_FORMATTAG = &H00004001&
  676. Global Const MCI_WAVE_STATUS_CHANNELS = &H00004002&
  677. Global Const MCI_WAVE_STATUS_SAMPLESPERSEC = &H00004003&
  678. Global Const MCI_WAVE_STATUS_AVGBYTESPERSEC = &H00004004&
  679. Global Const MCI_WAVE_STATUS_BLOCKALIGN = &H00004005&
  680. Global Const MCI_WAVE_STATUS_BITSPERSAMPLE = &H00004006&
  681. Global Const MCI_WAVE_STATUS_LEVEL = &H00004007&
  682.  
  683. 'flags for the dwFlags parameter of MCI_SET command message 
  684. Global Const MCI_WAVE_SET_ANYINPUT = &H04000000&
  685. Global Const MCI_WAVE_SET_ANYOUTPUT = &H08000000&
  686.  
  687. 'flags for the dwFlags parameter of MCI_GETDEVCAPS command message 
  688. Global Const MCI_WAVE_GETDEVCAPS_INPUTS = &H00004001&
  689. Global Const MCI_WAVE_GETDEVCAPS_OUTPUTS = &H00004002&
  690.  
  691. 'MCI extensions for MIDI sequencer devices 
  692.  
  693. 'flags for the dwReturn field of MCI_STATUS_PARMS parameter block 
  694. 'MCI_STATUS command, (dwItem = MCI_SEQ_STATUS_DIVTYPE) 
  695. Global Const MCI_SEQ_DIV_PPQN = (0 + MCI_SEQ_OFFSET)
  696. Global Const MCI_SEQ_DIV_SMPTE_24 = (1 + MCI_SEQ_OFFSET)
  697. Global Const MCI_SEQ_DIV_SMPTE_25 = (2 + MCI_SEQ_OFFSET)
  698. Global Const MCI_SEQ_DIV_SMPTE_30DROP = (3 + MCI_SEQ_OFFSET)
  699. Global Const MCI_SEQ_DIV_SMPTE_30 = (4 + MCI_SEQ_OFFSET)
  700.  
  701. 'flags for the dwMaster field of MCI_SEQ_SET_PARMS parameter block 
  702. 'MCI_SET command, (dwFlags = MCI_SEQ_SET_MASTER) 
  703. Global Const MCI_SEQ_FORMAT_SONGPTR = &H4001
  704. Global Const MCI_SEQ_FILE = &H4002
  705. Global Const MCI_SEQ_MIDI = &H4003
  706. Global Const MCI_SEQ_SMPTE = &H4004
  707. Global Const MCI_SEQ_NONE = 65533
  708.  
  709. 'flags for the dwItem field of MCI_STATUS_PARMS parameter block 
  710. Global Const MCI_SEQ_STATUS_TEMPO = &H00004002&
  711. Global Const MCI_SEQ_STATUS_PORT = &H00004003&
  712. Global Const MCI_SEQ_STATUS_SLAVE = &H00004007&
  713. Global Const MCI_SEQ_STATUS_MASTER = &H00004008&
  714. Global Const MCI_SEQ_STATUS_OFFSET = &H00004009&
  715. Global Const MCI_SEQ_STATUS_DIVTYPE = &H0000400A&
  716.  
  717. 'flags for the dwFlags parameter of MCI_SET command message 
  718. Global Const MCI_SEQ_SET_TEMPO = &H00010000&
  719. Global Const MCI_SEQ_SET_PORT = &H00020000&
  720. Global Const MCI_SEQ_SET_SLAVE = &H00040000&
  721. Global Const MCI_SEQ_SET_MASTER = &H00080000&
  722. Global Const MCI_SEQ_SET_OFFSET = &H01000000&
  723.  
  724. 'MCI extensions for animation devices 
  725.  
  726. 'flags for dwFlags parameter of MCI_OPEN command message 
  727. Global Const MCI_ANIM_OPEN_WS = &H00010000&
  728. Global Const MCI_ANIM_OPEN_PARENT = &H00020000&
  729. Global Const MCI_ANIM_OPEN_NOSTATIC = &H00040000&
  730.  
  731. 'flags for dwFlags parameter of MCI_PLAY command message 
  732. Global Const MCI_ANIM_PLAY_SPEED = &H00010000&
  733. Global Const MCI_ANIM_PLAY_REVERSE = &H00020000&
  734. Global Const MCI_ANIM_PLAY_FAST = &H00040000&
  735. Global Const MCI_ANIM_PLAY_SLOW = &H00080000&
  736. Global Const MCI_ANIM_PLAY_SCAN = &H00100000&
  737.  
  738. 'flags for dwFlags parameter of MCI_STEP command message 
  739. Global Const MCI_ANIM_STEP_REVERSE = &H00010000&
  740. Global Const MCI_ANIM_STEP_FRAMES = &H00020000&
  741.  
  742. 'flags for dwItem field of MCI_STATUS_PARMS parameter block 
  743. Global Const MCI_ANIM_STATUS_SPEED = &H00004001&
  744. Global Const MCI_ANIM_STATUS_FORWARD = &H00004002&
  745. Global Const MCI_ANIM_STATUS_HWND = &H00004003&
  746. Global Const MCI_ANIM_STATUS_HPAL = &H00004004&
  747. Global Const MCI_ANIM_STATUS_STRETCH = &H00004005&
  748.  
  749. 'flags for the dwFlags parameter of MCI_INFO command message 
  750. Global Const MCI_ANIM_INFO_TEXT = &H00010000&
  751.  
  752. 'flags for dwItem field of MCI_GETDEVCAPS_PARMS parameter block 
  753. Global Const MCI_ANIM_GETDEVCAPS_CAN_REVERSE = &H00004001&
  754. Global Const MCI_ANIM_GETDEVCAPS_FAST_RATE = &H00004002&
  755. Global Const MCI_ANIM_GETDEVCAPS_SLOW_RATE = &H00004003&
  756. Global Const MCI_ANIM_GETDEVCAPS_NORMAL_RATE = &H00004004&
  757. Global Const MCI_ANIM_GETDEVCAPS_PALETTES = &H00004006&
  758. Global Const MCI_ANIM_GETDEVCAPS_CAN_STRETCH = &H00004007&
  759. Global Const MCI_ANIM_GETDEVCAPS_MAX_WINDOWS = &H00004008&
  760.  
  761. 'flags for the MCI_REALIZE command message 
  762. Global Const MCI_ANIM_REALIZE_NORM = &H00010000&
  763. Global Const MCI_ANIM_REALIZE_BKGD = &H00020000&
  764.  
  765. 'flags for dwFlags parameter of MCI_WINDOW command message 
  766. Global Const MCI_ANIM_WINDOW_HWND = &H00010000&
  767. Global Const MCI_ANIM_WINDOW_STATE = &H00040000&
  768. Global Const MCI_ANIM_WINDOW_TEXT = &H00080000&
  769. Global Const MCI_ANIM_WINDOW_ENABLE_STRETCH = &H00100000&
  770. Global Const MCI_ANIM_WINDOW_DISABLE_STRETCH = &H00200000&
  771.  
  772. 'flags for hWnd field of MCI_ANIM_WINDOW_PARMS parameter block 
  773. 'MCI_WINDOW command message, (dwFlags = MCI_ANIM_WINDOW_HWND) 
  774. Global Const MCI_ANIM_WINDOW_DEFAULT = &H00000000&
  775.  
  776. 'flags for dwFlags parameter of MCI_PUT command message 
  777. Global Const MCI_ANIM_RECT = &H00010000&
  778. Global Const MCI_ANIM_PUT_SOURCE = &H00020000&
  779. Global Const MCI_ANIM_PUT_DESTINATION = &H00040000&
  780.  
  781. 'flags for dwFlags parameter of MCI_WHERE command message 
  782. Global Const MCI_ANIM_WHERE_SOURCE = &H00020000&
  783. Global Const MCI_ANIM_WHERE_DESTINATION = &H00040000&
  784.  
  785. 'flags for dwFlags parameter of MCI_UPDATE command message 
  786. Global Const MCI_ANIM_UPDATE_HDC = &H00020000&
  787.  
  788. 'MCI extensions for video overlay devices 
  789.  
  790. 'flags for dwFlags parameter of MCI_OPEN command message 
  791. Global Const MCI_OVLY_OPEN_WS = &H00010000&
  792. Global Const MCI_OVLY_OPEN_PARENT = &H00020000&
  793.  
  794. 'flags for dwFlags parameter of MCI_STATUS command message 
  795. Global Const MCI_OVLY_STATUS_HWND = &H00004001&
  796. Global Const MCI_OVLY_STATUS_STRETCH = &H00004002&
  797.  
  798. 'flags for dwFlags parameter of MCI_INFO command message 
  799. Global Const MCI_OVLY_INFO_TEXT = &H00010000&
  800.  
  801. 'flags for dwItem field of MCI_GETDEVCAPS_PARMS parameter block 
  802. Global Const MCI_OVLY_GETDEVCAPS_CAN_STRETCH = &H00004001&
  803. Global Const MCI_OVLY_GETDEVCAPS_CAN_FREEZE = &H00004002&
  804. Global Const MCI_OVLY_GETDEVCAPS_MAX_WINDOWS = &H00004003&
  805.  
  806. 'flags for dwFlags parameter of MCI_WINDOW command message 
  807. Global Const MCI_OVLY_WINDOW_HWND = &H00010000&
  808. Global Const MCI_OVLY_WINDOW_STATE = &H00040000&
  809. Global Const MCI_OVLY_WINDOW_TEXT = &H00080000&
  810. Global Const MCI_OVLY_WINDOW_ENABLE_STRETCH = &H00100000&
  811. Global Const MCI_OVLY_WINDOW_DISABLE_STRETCH = &H00200000&
  812.  
  813. 'flags for hWnd parameter of MCI_OVLY_WINDOW_PARMS parameter block 
  814. Global Const MCI_OVLY_WINDOW_DEFAULT = &H00000000&
  815.  
  816. 'flags for dwFlags parameter of MCI_PUT command message 
  817. Global Const MCI_OVLY_RECT = &H00010000&
  818. Global Const MCI_OVLY_PUT_SOURCE = &H00020000&
  819. Global Const MCI_OVLY_PUT_DESTINATION = &H00040000&
  820. Global Const MCI_OVLY_PUT_FRAME = &H00080000&
  821. Global Const MCI_OVLY_PUT_VIDEO = &H00100000&
  822.  
  823. 'flags for dwFlags parameter of MCI_WHERE command message 
  824. Global Const MCI_OVLY_WHERE_SOURCE = &H00020000&
  825. Global Const MCI_OVLY_WHERE_DESTINATION = &H00040000&
  826. Global Const MCI_OVLY_WHERE_FRAME = &H00080000&
  827. Global Const MCI_OVLY_WHERE_VIDEO = &H00100000&
  828.  
  829. Global Const CAPS1 = 94    'other caps 
  830. Global Const C1_TRANSPARENT = &H0001    'new raster cap 
  831. Global Const NEWTRANSPARENT = 3    'use with SetBkMode() 
  832.  
  833. Global Const QUERYROPSUPPORT = 40    'use to determine ROP support 
  834.  
  835. Global Const SELECTDIB = 41      'DIB.DRV select dib escape 
  836.  
  837. Global Const SC_SCREENSAVE = &HF140
  838.  
  839.